<?php
//User created controller
	
	$t=new Sou("main"); //The template loader class for this controller is initialized
	switch($action)
	{
		case "index":
			main_index($t);
			break;
		default:
			echo "Action not found";
	}
	
	//Define more elaborate functions
	//convention controller_action($template_loader)
	function main_index($t)
	{
		$hello="hi this is a template";
		$t->assign("hello",$hello);
		$t->display("index");
		
	}
	
	
?>